package ooday04;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

//static 测试类
public class StaticDemo {
    public static void main(String[] args) {
        StaticVar o1=new StaticVar();
        o1.show();
        StaticVar o2=new StaticVar();
        o2.show();
        StaticVar o3=new StaticVar();
        o3.show();
        System.out.println(StaticVar.b);//通过类名.来访问
        System.out.println("---------------");

        StaticBlock o4=new StaticBlock();//加载类时自动执行静态块
        StaticBlock o5=new StaticBlock();
        StaticBlock o6=new StaticBlock();

    }

}

